.factory('Business',function(x){
	
	function Business(category,contact,description,id,imageUrl,owner,rating,tag,type){
		this.category = category;
		this.contact = contact;
		this.description = description;
		this.id = id;
		this.imageUrl = imageUrl;
		this.owner = owner;
		this.rating = rating;
		this.tag = tag;
		this.type = type;
	}
	
	private possibleType = ['public','private'];
	
	Business.possibleType = angular.copy(possibleType);
	
	Business.bulid = function (data){
		return new Business(
				Category.build(data.category),
				data.contact, 
				data.description, 
				data.id, 
				data.imageUrl,
				data.owner,
				data.rating ,
				data.tag, 
				data.type
				);
	}
	
	return Business;
});